package day03;

import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class OperDemo {
    public static void main(String[] args) {
       int a=5;

        char c='\u005D';
        System.out.println(c);
        System.out.println((int)c);
        System.out.println(16*5+13);
        System.out.println(5>=5&&8>9||9<33&&8<1%3||true);
        System.out.println(!true);
        System.out.println(5|6);
        int num1=6,num2=90;
        boolean boo1=num1<num2 || ++num1>6;
        System.out.println(boo1);
        System.out.println(num1);
        char c1=65;
        int test=c1+2;
        short s=32767;
        test=s+5;
        c1+=4;
        test=c1+44;
        c1-=3;
        c1*=3;
        c1/=3;
        byte b=127;
        b+=2;
       // b=b+2;
        s+=1;
        System.out.println(b);
        b%=2;
        System.out.println(b);
        String tr2="宗师傅可视对讲";
        tr2=tr2.substring(1,5);
        List list1=new List() {
            @Override
            public int size() {
                return 0;
            }

            @Override
            public boolean isEmpty() {
                return false;
            }

            @Override
            public boolean contains(Object o) {
                return false;
            }

            @Override
            public Iterator iterator() {
                return null;
            }

            @Override
            public Object[] toArray() {
                return new Object[0];
            }

            @Override
            public Object[] toArray(Object[] a) {
                return new Object[0];
            }

            @Override
            public boolean add(Object o) {
                return false;
            }

            @Override
            public boolean remove(Object o) {
                return false;
            }

            @Override
            public boolean containsAll(Collection c) {
                return false;
            }

            @Override
            public boolean addAll(Collection c) {
                return false;
            }

            @Override
            public boolean addAll(int index, Collection c) {
                return false;
            }

            @Override
            public boolean removeAll(Collection c) {
                return false;
            }

            @Override
            public boolean retainAll(Collection c) {
                return false;
            }

            @Override
            public void clear() {

            }

            @Override
            public Object get(int index) {
                return null;
            }

            @Override
            public Object set(int index, Object element) {
                return null;
            }

            @Override
            public void add(int index, Object element) {

            }

            @Override
            public Object remove(int index) {
                return null;
            }

            @Override
            public int indexOf(Object o) {
                return 0;
            }

            @Override
            public int lastIndexOf(Object o) {
                return 0;
            }

            @Override
            public ListIterator listIterator() {
                return null;
            }

            @Override
            public ListIterator listIterator(int index) {
                return null;
            }

            @Override
            public List subList(int fromIndex, int toIndex) {
                return null;
            }
        };
        list1.add(b);

       // char cc=tr2.subSequence(1,2);
     //   Sequence se=new Sequence(char,2);
        System.out.println(""+10%20+30);
        System.out.println(90+23+""+23+23);
        System.out.println(12+12+12+"");
        Array ar[]=new Array[2];
        int[] int2={1,2};

        int int3=int2[0]+int2[1];
        System.out.println(int3);
        System.out.println(0.525*50.511);
//        double amount=800.0;
//        if(amount>500){
//            amount*=0.8;
//            System.out.println("后面的不执行");
//
//        }else{
//             amount*=0.9;
//        }
   //     System.out.println("消费金额:"+amount);
        System.out.println(600.0-4.9);
        double _score1=75;
        if(_score1>=90){
            _score1+=1;
            System.out.println("成绩优秀");
        }else if(_score1>80 && _score1<=89){
            System.out.println("成绩良好");
        }else if(_score1>=60 && _score1<=80 ){
            System.out.println("成绩合格但是仍需努力");
        }
        else{
            System.out.println("成绩合格");
        }
        double price=560;
        if(price<500){
            price*=0.9;
        }else if(price<1000){
            price*=0.8;
        }else if(price<2000){
            price*=0.7;
        }else{
            price*=0.5;

        }

        System.out.println(price);

        for(int i=0;i<9;i++){
            if(i%2==0){
                price+=1;
                continue;//跳过本次循环执行下一次
                //break;//跳过循环体不执行循环，直接执行循环外代码
            }
        }
        System.out.println("循环体外语句"+price);
    }
}
